<!DOCTYPE html>
<html lang="en">
<head>
	<base href="/">
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<!-- Bootstrap CSS-->
	<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css">
	<!-- Font Awesome CSS-->
	<link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.min.css">
	<!-- Custom Font Icons CSS-->
	<link rel="stylesheet" href="css/font.css">
	<!-- theme stylesheet-->
	<link rel="stylesheet" href="css/style.default.css" id="theme-stylesheet">
	<!-- Custom stylesheet - for your changes-->
	<link rel="stylesheet" href="css/custom.css">
	<link rel="stylesheet" href="css/layer.css">
	<title>文章</title>

</head>
<body>
<div id="app">
	<header class="header">

	</header>

	<div class="d-flex align-items-stretch">
		<!-- Sidebar Navigation-->
		<nav id="sidebar">

		</nav>
		<!-- Sidebar Navigation end-->
		<div class="page-content">
			<div class="page-header">
				<div class="container-fluid">
					<h2 class="h5 no-margin-bottom">我收藏的文章</h2>
				</div>
			</div>
			<section class="no-padding-bottom">

				<div class="list-group myList">
					<!--搜索文章的条件-->
					<div class="myTitle">
						<form class="form-inline">
							<div class="form-group">
								<label for="inlineFormInput" class="sr-only">Name</label>
								<input id="inlineFormInput" @keyup.enter="selectPage()" v-model="title" type="text" placeholder="按标题名字查找" class="mr-sm-3 form-control">
							</div>
							<div class="form-group">
								<input type="button" @click="selectPage()" value="查询" class="btn btn-primary">
							</div>
						</form>


					</div>

					<ul>
						<li v-for="art in page.list" class="list-group-item">

							<a href="javascript:;" @click="todetil(art)">{{art.title}}</a>
							<p class="h6"><strong>作者：</strong>{{art.publishRealName}}</p>
							<p class="h6"><strong>时间：</strong>{{art.publishDate}}</p>
							<p style="white-space:nowrap;overflow:hidden;text-overflow: ellipsis">
								{{art.content}}
							</p>
						</li>

					</ul>

					<nav class="text-center" aria-label="Page navigation">
						<ul class="pagination">
							<li>
								<a @click="selectPage(page.pageNum-1)" v-if="page.pageNum>1" aria-label="Previous">
									<span aria-hidden="true">&laquo;</span>
								</a>
								<span v-else aria-hidden="true">&laquo;</span>
							</li>
							<li v-for="index in page.navigatepageNums">
								<span style="background-color:white;color: black" v-if="index==page.pageNum">{{index}}</span>
								<a v-else @click="selectPage(index)">{{index}}</a>
							</li>
							<li>
								<a @click="selectPage(page.pageNum+1)" v-if="page.pageNum<page.pages"  aria-label="Next">
									<span aria-hidden="true">&raquo;</span>
								</a>
								<span v-else aria-hidden="true">&raquo;</span>
							</li>
						</ul>
					</nav>
				</div>
			</section>

			<footer class="footer">
				<div class="footer__block block no-margin-bottom">
					<div class="container-fluid text-center">
						<p class="no-margin-bottom">Copyright &copy; 2019.Company <a href="#">东方标准</a></p>
					</div>
				</div>
			</footer>
		</div>
	</div>
</div>
<!-- JavaScript files-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/popper.js/umd/popper.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/jquery.cookie/jquery.cookie.js"></script>
<script src="vendor/chart.js/Chart.min.js"></script>
<script src="vendor/jquery-validation/jquery.validate.min.js"></script>
<script src="js/charts-home.js"></script>
<script src="js/front.js"></script>
<!--		<script src="js/custom.js"></script>-->
<script src="js/layer.js"></script>
<script src="js/vue-2.6.11.js"></script>
<script src="js/axios-0.19.2.min.js"></script>
<script src="js/jquery-cookie-1.4.1.js"></script>
<script src="js/article/collect.js"></script>
<script>
	$(function () {
		$("#sidebar").load("common/sibar");
		$(".header").load("common/header");
	})
</script>
</body>
</html>
